// 刚刚封装的axios
import request from '../utils/axios';


// 1. 获取用户任务列表
export const getBro = (query1) => {
        return request({
            url: '/student/getStudentList',
            method: 'get',
            params: query1,

        })
    }
    // 2. 删除接口
export const delBro = (query) => {
        return request({
            url: '/student/delStudentById.do',
            method: 'delete',
            params: query,
        })

    }
    // 3. 新增接口
export const addBro = (query) => {
        return request({
            url: '/student/addStudent.do',
            method: 'post',
            data: query,

        })
    }
    // 4. 修改接口
export const updBro = (query) => {
    return request({
        url: '/student/updStudent.do',
        method: 'put',
        data: query,
    })
}

export const getBroInfo = (query1) => {
    return request({
        url: '/student/updStudent.do',
        method: 'put',
        data: query,
    })
}